<?php
/**
 * Data model
 *
 * @category  DataModel
 * @package   DataModel
 * @author    DataModel Generator v1.0
 * @version   $Revision: 127 $
 */
/**
 * Data model for table "wiki"
 *
 * @category  DataModel
 * @package   DataModel
 * @author    DataModel Generator v1.0
 * @version   $Revision: 127 $
 */
class Wiki extends BaseWiki
{
    public function getText()
    {
        using('Framework.System.Wiki');

        return WikiParser::parse($this->text);
    }

    public static function getByUrl($url)
    {
        return Wiki::getByParams(array('url' => trim($url, '/')));
    }

    public static function saveIfNotExists($params = null)
    {
        return parent::saveIfNotExists($params, __CLASS__);
    }
}
